﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace PopShops.Entities
{
    public class Group
    {
        #region Public Properties

        [XmlAttribute("product_group_id")]
        public long GroupID { get; set; }
        [XmlAttribute("product_group_product_count")]
        public int GroupProductCount { get; set; }
        [XmlAttribute("product_group_merchant_count")]
        public int GroupMerchantCount { get; set; }
        [XmlAttribute("product_group_min_price")]
        public double GroupMinPrice { get; set; }
        [XmlAttribute("product_group_max_price")]
        public double GroupMaxPrice { get; set; }

        #endregion

        #region Ctor

        public Group()
        { }

        public Group(long product_group_id, int product_group_product_count, int product_group_merchant_count,
                    double product_group_min_price, double product_group_max_price)
        {
            this.GroupID = product_group_id;
            this.GroupMaxPrice = product_group_max_price;
            this.GroupMerchantCount = product_group_merchant_count;
            this.GroupMinPrice = product_group_min_price;
            this.GroupProductCount = product_group_product_count;
        }

        #endregion

    }
}
